package Test;

import static org.junit.Assert.*;


import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import DBLayer.DBLager;

import ModelLayer.Lager;


public class TestDBLager {
	private DBLager dbObject;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		dbObject = new DBLager();
	}

	@After
	public void tearDown() throws Exception {
	}


	@Test
	public void testSearchLagerNr() 
	{
		System.out.println("Finder LagerNr ");
		Lager lObject = dbObject.findLagerNr1(101, false);
		if(lObject != null)
		{
			System.out.println(lObject.getLagerNr());
			System.out.println(lObject.getLV().size());
			
		}
		else {
			fail("Lager nummer ikke fundet");
		}
	}


}
